<?php require_once('start_session.php');  ?>
<div id="connect_info">
<h3>접속정보</h3>
<table>
<tbody>
	<tr>
		<th class="label">IP</th>
		<td><?php echo $_SESSION['ip']; ?></td>
	</tr>
	<tr>
		<th class="label">접속지</th>
		<td>
			<?php 
				if (!empty($_SESSION['location']))
					echo $_SESSION['location'];
				else if (!empty($_SESSION['latitude']) && !empty($_SESSION['longitude'])) {
					echo '위도: '.$_SESSION['latitude'].', 경도: '.$_SESSION['longitude'];
				}
			?>
		</td>
	</tr>
<!--
	<tr>
		<th class="label">접속시간</th>
		<td><?php echo $_SESSION['connect_time']; ?></td>
	</tr>
-->
</tbody>
</table>
</div>